integration using trigonometric identities